import { CodeGen } from "../pages/CodeGen";
import { DsManage } from "../pages/DSManage";
import { MainLayout } from "../pages/MainLayout";
import { KeywordsLibrary } from "../pages/KeywordsLibrary";
import App from "../App";
import { createBrowserRouter } from "react-router-dom";
import { CodeTemplate } from "../pages/SystemSetting/CodeTemplate";
import { DriverManage } from "../pages/SystemSetting/DriverManage";

const routes = createBrowserRouter([
  {
    path: '/',
    element: <App />,
    children: [
      {
        path: '/code/generate',
        element: <CodeGen />
      },
      {
        path: '/datasource/manage',
        element: <DsManage />
      },
      {
        path: '/keywords/library',
        element: <KeywordsLibrary />
      },
      {
        path: '/code/template',
        element: <CodeTemplate />
      },
      {
        path: '/driver/manage',
        element: <DriverManage />
      }
    ]
  }
]
)
export default routes;